<?php

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;

class ActivityPublishing extends Model
{
    public $timestamps = false;
    protected $fillable = [
        'activity_id',
        'account_id',
    ];

    public function account()
    {
        return $this->hasOne(PublishingAccount::class, 'id', 'account_id');
    }

    public function activity()
    {
        return $this->hasOne(Activity::class, 'id', 'activity_id');
    }
}
